public class ProductChest : Product
{
	public GotchaChestType chestType;

	public int priorityInVip;

	public override bool equippable
	{
		get
		{
			return false;
		}
	}

	public override bool Purchased
	{
		get
		{
			return false;
		}
		set
		{
		}
	}

	public ProductChest(string id_G, MoneyType priceIng_G, int price_G, bool availableForBuy_G, float sortWeight_G, string texture_G, string nameForFlurry_G, bool isTemporary_G, int tier_G, bool bestPrice_G, bool newProduct_G, string nextProductId_G, string prevProductId_G, string categoryName_G, string subCategoryName_G, RareType rare_G, GotchaChestType chestType_G, int priorityInVip_G)
		: base(id_G, priceIng_G, price_G, availableForBuy_G, sortWeight_G, texture_G, nameForFlurry_G, isTemporary_G, tier_G, bestPrice_G, newProduct_G, nextProductId_G, prevProductId_G, categoryName_G, subCategoryName_G, rare_G)
	{
		chestType = chestType_G;
		priorityInVip = priorityInVip_G;
	}

	public override void BuyProduct(params object[] args)
	{
		int count = ((args.Length <= 0) ? 1 : ((int)args[0]));
		if (GotchaManager.instance != null)
		{
			GotchaManager.instance.AddChest(chestType, count);
		}
		else
		{
			BCWDebug.LogError("GotchaManager.instance == null");
		}
	}
}
